<?php
namespace app\agentmobile\model;

class User extends BaseModel
{
	protected $insert = [];
	public function setPasswordAttr($value)
	{
		return md5($value);
	}

	public function wxuser()
	{
		return $this->hasOne('Wxuser','uid','id');
	}
}